package com.bmft.signIn.controller;


import com.bmft.signIn.scheduled.SignInAllScheduled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Jarvan
 * @create 2020/9/7 19:42
 * 除了自动打卡外，我们还可以手动给所有人打卡
 */
@RestController
public class SignForAllController {
    @Autowired
    SignInAllScheduled signForAllSomeTime;

    @RequestMapping("/all")
    public List<String> all() {
        System.err.println("======手动打卡所有=====");
        return signForAllSomeTime.signForAll();
    }
}
